﻿
using System;
using System.Threading;
namespace Shop.Core.Events
{
    /// <summary>
    /// 查询实体事件
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class EntityRequired<T, Key> where T : BaseEntity<Key>
    {
        /// <summary>
        /// Id查询条件
        /// </summary>
        public Key Id
        {
            get;
            set;
        }

        /// <summary>
        /// 查询的附属数据
        /// </summary>
        public object[] Paramters
        {
            get;
            set;
        }

        public EntityRequired(Key id, object[] paramters = null)
        {
            this.Id = id;
            this.Paramters = paramters;
        }
        /// <summary>
        /// 查询结果
        /// </summary>
        public T Result
        {
            get;
            set;
        }
    }
}
